package io.coderyeah.org.controller;

import io.coderyeah.basic.Result;
import io.coderyeah.org.service.DictionaryDetailService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/dicDetail")
@ApiOperation("字典详细接口")
public class DictionaryDetailController {

    @Autowired
    private DictionaryDetailService detailService;

    @ApiOperation("查询所有详情")
    @GetMapping("/list")
    public Result list() {
        return Result.success(detailService.list());
    }
}
